home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1993 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  50 lines

  1. Newsgroups: comp.lang.c
  2. Path: news.sprintlink.net!eskimo!news
  3. From: mag@eskimo.com (mAg)
  4. Subject: Re: Are libraries Compiler dependent?
  5. X-Nntp-Posting-Host: tia1.eskimo.com
  6. Message-ID: <DLD52t.IAp@eskimo.com>
  7. Sender: news@eskimo.com (News User Id)
  8. Organization: *.*
  9. X-Newsreader: WinVN 0.93.10
  10. References: <rmhanson.82.30FAD0B2@students.wisc.edu>
  11. Date: Thu, 18 Jan 1996 06:08:52 GMT
  12.  
  13. In article <rmhanson.82.30FAD0B2@students.wisc.edu> (Mon, 15 Jan 1996 22:09:55 GMT), 
  14. rmhanson@students.wisc.edu says :
  15. >
  16. >Just as the title says are libraries dependant?
  17. >
  18. >right now I just use the standard libraries accompaning the compiler, but
  19. >I want to use new functions that I picked up that are in a seperate Lib named
  20. >graph.lib.
  21. >
  22. >I was under the impression that I could take a lib created by a different
  23. >compiler and run it w/ mine....
  24. >
  25. >or do I have to take the seperate *.c files and create my owm w/ its own *.h?
  26. >
  27. >thanx
  28. >ryan
  29.  
  30. If you stick to standard C your source code will be portable, however Executables are not 
  31. portable. You need to compile the source for the other CPU/OS using the compiler for that 
  32. configuration.
  33.  
  34. Using some other LIB file will work for that specific compiler/CPU/OS, and it may even work 
  35. for some other compilers on the same CPU/OS but will most certainly will not work on other 
  36. machine/OS.
  37.  
  38. Only C source is guaranteed to be portable if you stick to standard C.
  39.  
  40. BTW C language has no comcept of graphics.
  41. -- 
  42. /* --------------------------------------------------------
  43.                       MAG@ESKIMO.COM
  44. http://www.eskimo.com/~mag/index.html
  45. ***********************************************************
  46. To understand recursion one must first understand recursion
  47. ***********************************************************
  48. -------------------------------------------------------- */
  49.  
  50.